home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Contributed / SpriteWorld / SpriteWorld Files / Headers / SpriteCompiler.h < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.1 KB  |  57 lines  |  [TEXT/CWIE]

  1. ///--------------------------------------------------------------------------------------
  2. //    SpriteCompiler.h
  3. //
  4. //    Portions are copyright: © 1991-94 Tony Myles, All rights reserved worldwide.
  5. //
  6. //    Description:    constants, structures, and prototypes for the sprite compiler
  7. ///--------------------------------------------------------------------------------------
  8.  
  9. #ifndef __SPRITECOMPILER__
  10. #define __SPRITECOMPILER__
  11.  
  12. #ifndef __TYPES__
  13. #include <Types.h>
  14. #endif
  15.  
  16. #ifndef __QUICKDRAW__
  17. #include <QuickDraw.h>
  18. #endif
  19.  
  20. #ifndef __SWCOMMON__
  21. #include <SWCommonHeaders.h>
  22. #endif
  23.  
  24. #ifndef __SPRITEFRAME__
  25. #include <SpriteFrame.h>
  26. #endif
  27.  
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. #if PRAGMA_ALIGN_SUPPORTED
  34. #pragma options align=mac68k
  35. #endif
  36.  
  37.     // 68k code compiler functions:
  38. SW_FUNC OSErr SWCompileSprite(
  39.     SpritePtr srcSpriteP);
  40.  
  41. SW_FUNC OSErr SWCompileFrame(
  42.     FramePtr srcFrameP);
  43.  
  44.     // RLE compiler
  45. SW_FUNC OSErr SWCreateRLEData(
  46.     SpritePtr srcSpriteP);
  47.  
  48. #if PRAGMA_ALIGN_SUPPORTED
  49. #pragma options align=reset
  50. #endif
  51.  
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55.  
  56. #endif    /* __SPRITECOMPILER__ */
  57.